package com.ssww.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ssww.dao.JobsDao;
import com.ssww.entity.Job;
import com.ssww.service.JobsService;
/**
 * 
 * @author 
 *
 */
@Service
public class JobsServiceImpl implements  JobsService {
	@Resource
	private JobsDao jobsDao;
	
	@Transactional
	public Job getJobById(Integer id) {
		return jobsDao.getJobById(id);
	}
	@Transactional
	public List<Job> getJobList() {
		return jobsDao.getJobList();
	}
	@Transactional
	public int addJob(Job a) {
		jobsDao.addJob(a);
		return 0;
	}
	@Transactional
	public int deleteJob(int id) {
		jobsDao.deleteJob(id);
		return 0;
	}
	@Transactional
	public int updateJob(Job a, int id) {
		jobsDao.updateJob(a, id);
		return 0;
	}
	

}
